<template>
	<view>
		<txl @ev="evFunc" :datas="datas" color="red" :index="true" name="employeeName"></txl>
	</view>
</template>

<script>
	import txl from '@/components/yt-txl/index.vue';
	export default {
		components: {
			txl
		},
		data() {
			let datas = [{
				"employeeId": "test1",
				"employeeName": "郭冰冰",
				"companyId": "1",
				"companyName": "test company",
				"departmentId": "testdeptid",
				"departmentName": "test dept",
				"postId": "testpostid",
				"postName": "testpost",
			},
			 {
			 	"employeeId": "test1",
			 	"employeeName": "1a",
			 	"companyId": "1",
			 	"companyName": "test company",
			 	"departmentId": "testdeptid",
			 	"departmentName": "test dept",
			 	"postId": "testpostid",
			 	"postName": "testpost",
			 }, 
			 {
			 	"employeeId": "test1",
			 	"employeeName": "小熊",
			 	"companyId": "1",
			 	"companyName": "test company",
			 	"departmentId": "testdeptid",
			 	"departmentName": "test dept",
			 	"postId": "testpostid",
			 	"postName": "testpost",
			 }, 
			 {
			 	"employeeId": "test1",
			 	"employeeName": "小明",
			 	"companyId": "1",
			 	"companyName": "test company",
			 	"departmentId": "testdeptid",
			 	"departmentName": "test dept",
			 	"postId": "testpostid",
			 	"postName": "testpost",
			 }, ]
			return {
				datas: datas
			};
		},
		methods: {
			evFunc(data) {
				console.log(data)
			}
		},
		mounted() {}
	};
</script>
